package com.ruoyi.union.domain;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;

/**
 * 基层工会活动对象 sys_activity
 * 
 * @author ruoyi
 * @date 2025-01-15
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_activity")
public class SysActivity implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 活动主键id */
    @TableId(value = "activity_id", type = IdType.AUTO)
    private Long activityId;

    /** 活动名称 */
    @Excel(name = "活动名称")
    private String activityName;

    /** 发布部门id（基层工会） */
    @Excel(name = "发布部门")
    private Long deptId;

    /** 发布人id（文体委员） */
    @Excel(name = "发布人")
    private Long publisherId;

    /** 活动时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "活动时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date activityTime;

    /** 最大参与人数 */
    @Excel(name = "最大参与人数")
    private Integer maxParticipants;

    /** 当前报名人数 */
    @Excel(name = "当前报名人数")
    private Integer currentParticipants;

    /** 活动状态（0待审核 1已发布 2已结束） */
    @Excel(name = "活动状态", readConverterExp = "0=待审核,1=已发布,2=已结束")
    private String activityStatus;

    /** 审核状态（0待审核 1审核通过 2审核驳回） */
    @Excel(name = "审核状态", readConverterExp = "0=待审核,1=审核通过,2=审核驳回")
    private String approvalStatus;

    /** 流程实例id */
    private String processInstanceId;

    public void setActivityId(Long activityId) 
    {
        this.activityId = activityId;
    }

    public Long getActivityId() 
    {
        return activityId;
    }

    public void setActivityName(String activityName) 
    {
        this.activityName = activityName;
    }

    public String getActivityName() 
    {
        return activityName;
    }

    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }

    public void setPublisherId(Long publisherId) 
    {
        this.publisherId = publisherId;
    }

    public Long getPublisherId() 
    {
        return publisherId;
    }

    public void setActivityTime(Date activityTime) 
    {
        this.activityTime = activityTime;
    }

    public Date getActivityTime() 
    {
        return activityTime;
    }

    public void setMaxParticipants(Integer maxParticipants) 
    {
        this.maxParticipants = maxParticipants;
    }

    public Integer getMaxParticipants() 
    {
        return maxParticipants;
    }

    public void setCurrentParticipants(Integer currentParticipants) 
    {
        this.currentParticipants = currentParticipants;
    }

    public Integer getCurrentParticipants() 
    {
        return currentParticipants;
    }

    public void setActivityStatus(String activityStatus) 
    {
        this.activityStatus = activityStatus;
    }

    public String getActivityStatus() 
    {
        return activityStatus;
    }

    public void setApprovalStatus(String approvalStatus) 
    {
        this.approvalStatus = approvalStatus;
    }

    public String getApprovalStatus() 
    {
        return approvalStatus;
    }

    public void setProcessInstanceId(String processInstanceId) 
    {
        this.processInstanceId = processInstanceId;
    }

    public String getProcessInstanceId() 
    {
        return processInstanceId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("activityId", getActivityId())
            .append("activityName", getActivityName())
            .append("deptId", getDeptId())
            .append("publisherId", getPublisherId())
            .append("activityTime", getActivityTime())
            .append("maxParticipants", getMaxParticipants())
            .append("currentParticipants", getCurrentParticipants())
            .append("activityStatus", getActivityStatus())
            .append("approvalStatus", getApprovalStatus())
            .append("processInstanceId", getProcessInstanceId())
            .toString();
    }
}
